﻿using SmartPatientCentre.Common;
using SmartPatientCentre.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartPatientCentre.ViewModels
{
    public class PatientsViewModel
    {
        public List<Patient> AllPatients { get; private set; }
        public User CurrentUser { get; private set; }

        public PatientsViewModel(List<Patient> patientList)
        {
            AllPatients = patientList;
        }

        //private async void GetData(string username, string password)
        //{
        //    DownloadClient client = new DownloadClient();

        //    try
        //    {
        //        CurrentUser = await client.AuthenticateUser(username, password);
        //        AllPatients = await client.GetPatients(CurrentUser);
        //    }
        //    catch(Exception ex)
        //    {
        //        ErrorMessage = ex.Message;
        //    }
        //}
    }
}
